/*
 * @Author: Superficial
 * @Date: 2019-11-19 22:36:45
 * @LastEditTime: 2022-05-20 09:15:19
 * @Description: 分类接口
 */
import request from "@/utils/request";

/**
 * @description: 获取分类列表
 * @param {Object} params 查询分类的条件
 * @return {Object} articles 返回分类的列表数据和总数
 */
export function getCategories(params) {
  return request({
    url: "/category",
    method: "get",
    params
  });
}
